Skip to content

⚙️ [Maintenance]: Publish and release execution paths are now decoupled - #407

Merged
Marius Storhaug (MariusStorhaug) merged 7 commits into
mainfrom
decouple-gallery-publish-release
Aug 9, 2026
Merged

⚙️ [Maintenance]: Publish and release execution paths are now decoupled#407
Marius Storhaug (MariusStorhaug) merged 7 commits into
mainfrom
decouple-gallery-publish-release

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Jul 23, 2026

Copy link
Copy Markdown
Member

PowerShell Gallery publishing and GitHub Release creation now run as independent publish-pipeline responsibilities, so each operation reports its own outcome and a partial release can be safely retried.

Changed: Publishing and release operations are separate

Publish-PSModule now publishes the tested module artifact to PowerShell Gallery only. GitHub release creation, release notes, and release-asset upload run through the dedicated Release-PSModule action.

Technical Details

  • The Plan job remains the single version authority: Publish.Module.Resolution.FullVersion is passed directly to Release-PSModule as the GitHub release tag.
  • Release-PSModule detects an existing tag, resumes the module ZIP upload, and exports the final tag and release URL as action outputs.
  • Gallery and release steps have independent failure behavior; cleanup only runs after a successful stable release, while abandoned-PR cleanup remains supported.
  • Cleanup receives the release tag through the release action's declared output rather than shared environment state.
  • The reusable workflow now uses job-scoped write permissions and a pinned Ubuntu runner; both publishing actions have action-local READMEs.
  • Pester covers prefixed prerelease WhatIf behavior and resuming an existing release without recreating it. Full live publishing remains intentionally out of scope.
Related issues

Comment thread .github/actions/Release-PSModule/action.yml Dismissed
@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@MariusStorhaug
Marius Storhaug (MariusStorhaug) marked this pull request as ready for review August 9, 2026 11:05
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@MariusStorhaug
Marius Storhaug (MariusStorhaug) marked this pull request as draft August 9, 2026 11:15
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@MariusStorhaug
Marius Storhaug (MariusStorhaug) marked this pull request as ready for review August 9, 2026 11:27
@MariusStorhaug
Marius Storhaug (MariusStorhaug) merged commit 15c2814 into main Aug 9, 2026
60 checks passed
@MariusStorhaug
Marius Storhaug (MariusStorhaug) deleted the decouple-gallery-publish-release branch August 9, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants